
import 'package:flutter_changdian_football/api/app_exceptions.dart';

class ApiResponse<T> {
  Status status;
  T? data;
  AppException? exception;
  ApiResponse.completed(this.data) : status = Status.completed;
  ApiResponse.error(this.exception) : status = Status.error;

  @override
  String toString() {
    return "status : $status \n message : $exception \n data : $data";
  }
}

enum Status { completed, error }